﻿// (c) Copyright 2002-2009 Telerik 
// This source is subject to the GNU General Public License, version 2
// See http://www.gnu.org/licenses/gpl-2.0.html. 
// All other rights reserved.
namespace Telerik.Web.Mvc.UI.Html
{
    public class GridLastCellBuilderDecorator : IGridCellBuilderDecorator
    {
        private readonly string lastCssClass;

        public GridLastCellBuilderDecorator(string lastCssClass)
        {
            this.lastCssClass = lastCssClass;
        }

        public void Decorate(IHtmlNode td)
        {
            td.AddClass(lastCssClass);
        }
    }
}
